import request from "../utils/request";


export const userInfo=(userInfo: {},name:string|null)=>{
    return request({
        method:'POST',
        url:'/userInfo',
        data: {'userInfo' : userInfo, 'name' : name}
    }).then(res=>{
        return res.data
    })
}

export const getUserInfo=(name:string|null)=>{
    return request({
        method:'GET',
        url:'/getUserInfo',
        params: {name},
    }).then(res=>{
        return res.data
    })
}